/**
 * Created by Baggio on 2017-12-24.
 */
function setStatus(tid, status) {
    var postData = {tid: tid, status: status}
    $.ajax({
        cache: true,
        type: 'POST',
        data: postData,
        url: '/admin/messageBoard/modifyMessageBoardStatus.html',
        dataType: 'json',
        success: function (data) {
            if (data.code != 1) {
                layer.msg(data.msg, {icon: 5, time: 1000});
                return;
            }
            window.location.reload();
        }
    })
}